This page last changed on Jun 06, 2007 by jdeolive.

Introduction

Maven is a tool for building and managing Java-based projects. It is a successor to Ant, but takes a more project oriented approach. It is great for figuring out dependancies and complex build orders, and helps to give a coherent overall structure to java projects. For more on maven see what is maven?

In this section you will:

  1. Download and Install Maven

  2. Configure your Maven environment

Download

Windows

Download the Windows Installer .

Linux

  1. Download the Binary Archive

Install

Windows

  1. Run the Windows Installer downloaded in the previous section.
  2. Navigate through the installer accepting the defaults.

Linux

  1. Navigate to the directory where you wish to install maven. Example: /usr/java.
  2. Execute the command:
    [/usr/java]% unzip maven-2.0.6.zip

Configuration

Windows

No additional configuration required.

Linux

Execute the following commands to update your environment (assuming you are using a bash shell).

export M2_HOME=/usr/java/maven-2.0.6
export PATH=$PATH:$M2_HOME/bin

The above commands should be added to your profile in order to persist.

Reference

Maven Quickstart
Maven User Guide

It seems that the maven/binaries/maven-2.0.4.exe windows installer download doesn't exist any more. Only the .zip and .gz versions.

Posted by camerons at Jul 29, 2006 06:49
Document generated by Confluence on Jan 16, 2008 23:26